package com.yiquan.search.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.mongodb.core.index.Indexed;

import java.util.Date;

/**
 * 用户浏览行为
 *
 * @author Tyrone
 * @date 2022/3/6 21:39
 */
@Data
@Document(indexName = "yiquan_action_browse",type = "browse")
public class BrowseAction {
    @Id
    private Long id;
    /**
     * 用户id
     */
    @Indexed
    private Long userId;
    /**
     * 视频id
     */
    @Indexed
    private Long videoId;
    private Integer videoIdType;
    /**
     * 得分
     */
    private Double score;
    /**
     * 浏览时间
     */
    private Long browseDate;
}
